export const semiRingOption = {
  title: {
    // 主标题文字
    text: '主标题',
    // 主标题文字样式配置
    textStyle: {
      color: '#c2e6f3',
      fontSize: '14',
      fontWeight: 'bold'
    },
    subtext: '副标题',
    subtextStyle: {
      color: '#c2e6f3',
      fontSize: '28',
      fontWeight: 'bold'
    },
    show:false,
    top: 5,
    left: 30,
  },
  tooltip: {
    trigger: 'item',
    formatter: function (param) {
      if (param['value'] == echartSemiRingTotal) {
        return;
      }

      var str = param['data']['name'] + '(';
      var c = (param['value'] / echartSemiRingTotal) * 100;
      c = c.toFixed(2);
      str = str + c + "%)";
      return str
    }

  },

  legend: {
    type: 'scroll',
    orient: 'vertical',
    top: 65,
    left: 25,
    selectedMode: false,//取消图例上的点击事件
    // 图例数据
    data: ['数据名称'],
    textStyle: {
      color: '#c2e6f3',
      fontSize: '11'
    },
  },
  series: [
    {
      type: 'pie',
      startAngle: 270,
      radius: ['45%', '65%'],
      center: ['65%', '40%'],
      // 数据，这里的name要与legend中的data的数据名称一致
      data: [
        {value: 335, name: '数据名称', itemStyle:{normal:{color:'rgba(0,0,0,0)'}}},
      ],

      // 不展示小线标
      avoidLabelOverlap: false,
      label: {
        normal: {
          show: false,
          position: 'center'
        },
        emphasis: {
          show: false,
          textStyle: {
            fontSize: '30',
            fontWeight: 'bold'
          }
        }
      },
      labelLine: {
        normal: {
          show: false
        }
      },

      itemStyle: {
        emphasis: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ],

}
